import React, { useContext } from 'react'

import { UserContext, ThemeContext } from '../App'
export default function ContextHookDemo() {
  const user = useContext(UserContext)
  const theme = useContext(ThemeContext)

  console.log(user, theme)
  return (
    <div>
      <h2>用户:{user.name}</h2>
    </div>
  )
}
